#include "stdafx.h"
#include "Shader.h"

namespace RayTracePro
{
	ShadingNodeParameter::~ShadingNodeParameter()
	{
		if (Shader)
			Shader->Free();
	}

	ShadingNodeParameter& ShadingNodeParameter::operator = (const ShadingNodeParameter & sp)
	{
		Shader = sp.Shader;
		Value = sp.Value;
		if (Shader)
			Shader->AddRef();
		return *this;
	}
}